import {
  post
} from "../../../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

/**
 * 按需引入
 */

// 1.获取任务列表
export const list = async (p) =>
  await post(api + "/witness/weeon/buss/allocation/allocationbdlist", p);

export const verifyTask = async (p) =>
  await post(api + "/witness/weeon/buss/allocation/verifyTask", p);

export const saveTask = async (p) =>
  await post(api + "/witness/weeon/buss/allocation/saveTask", p);

export const verifyTaskCode = async (p) =>
  await post(api + "/witness/weeon/buss/allocation/verifyTaskCode", p);
